import 'package:json_annotation/json_annotation.dart';

part 'gems_model.g.dart';

@JsonSerializable()
class GemsModel {
  final double? amount;
  final int? firstGive;
  final int? status;
  final String? code;
  final int? num;
  final int? dateNum;
  final int? dateType;
  final int? gems;
  String? name;
  String? desc;

  GemsModel(
      {this.amount,
      this.firstGive,
      this.status,
      this.code,
      this.num,
      this.dateNum,
      this.dateType,
      this.gems,
      this.name,
      this.desc});

  factory GemsModel.fromJson(Map<String, dynamic> json) =>
      _$GemsModelFromJson(json);

  Map<String, dynamic> toJson() => _$GemsModelToJson(this);
}
